package com.antdesignbackend.backend.service;

import com.antdesignbackend.backend.entity.Collection;
import com.antdesignbackend.backend.entity.entityVo.CollectionVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectionService extends IService<Collection> {
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper);
    List<CollectionVo> search(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper,
                                   Page<CollectionVo> page);
    List<CollectionVo> sum(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper,
                           Page<CollectionVo> page);
    Integer sumCount(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper);
    Integer count2(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper);

    List<CollectionVo> search2(@Param(Constants.WRAPPER) QueryWrapper<CollectionVo> queryWrapper,
                               Page<CollectionVo> page);
}
